package yunwo.cn.yzstation.adapter;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import yunwo.cn.yzstation.R;
import yunwo.cn.yzstation.base.BasicAdapter;
import yunwo.cn.yzstation.view.activity.WalkerActivity;

/**
 * Created by lao on 2017/8/30.
 */

public class TakegoodsLVadapter extends BasicAdapter<String>{
    public TakegoodsLVadapter(Context mctx) {
        super(mctx);
    }

    @Override
    protected int setItemLayout() {
        return R.layout.item_takegoods;
    }

    @Override
    protected void bindData(View convertView, String data, int position) {
        TextView view = get(convertView, R.id.ordernumber);
        TextView distribution = get(convertView, R.id.distribution);
        distribution.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(mctx, WalkerActivity.class);
                mctx.startActivity(intent);
            }
        });
    }


}
